<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<#include "../inc/commonJs.html">
<script type="text/JavaScript">
	function doSave(){
		var url = "<#if id??>editLink.do?id=${id}<#else>addLink.do</#if>";
		$('form').form('submit',{  
		    url:url,
		    onSubmit:function(){
				return $(this).form('validate');
		    },  
		    success:function(data){  
				top.closemodalwindow(true,data);
		    }  
		});
	}
	//
	$(function(){
		if(${linktype!}!=0){
			$('#linktype').combotree('setValue','${linktype!}');
		}
		if('${obj.linktype!}'){
			$('#linktype').combotree('setValue','${obj.linktype!}');
		}
	});
</script>

</head>
<body>
<form align="center" method="post">
<table border="0" width="98%" cellpadding="0" cellspacing="0" class="table_all" align="center">
      <tr>
        <td width="25%" height="32" class="td_table_1"><span class="smallFont">类&nbsp;&nbsp;&nbsp; 型：</span></td>
        <td width="75%" height="32" class="td_table_2">&nbsp;
          <input id="linktype" class="easyui-combotree" name="linktype" style="width:300px;" data-options="url:'listLinktypeForTree.do'" panelHeight="150"/>
          <font color=red>*</font></td>
      </tr>
      <tr>
        <td height="32"  class="td_table_1"><span class="smallFont">网站名称：</span></td>
        <td height="32" class="td_table_2"><div align="left">&nbsp;
            <input name="webname" class="easyui-validatebox" required="true" maxlength="20" style="width:300px;"  title="这里请输入您的网站名称，最多为20个汉字" value="${obj.webname!}">
            <font color=red>*</font> </div></td>
      </tr>
      <tr>
        <td height="32"  class="td_table_1"><span class="smallFont">网站地址：</span></td>
        <td height="32" class="td_table_2"><div align="left">&nbsp;
            <input name="weburl" value="${obj.weburl!}" size="26"  class="easyui-validatebox" required="true" maxlength="100" style="width:300px;" type="text" title="这里请输入您的网站地址，最多为50个字符，前面必须带http://">
            <font color=red>*</font> </div></td>
      </tr>
      <tr>
        <td height="32"  class="td_table_1"><span class="smallFont">网站LOGO：</span></td>
        <td height="32" class="td_table_2"><div align="left">&nbsp;
            <input name="logo" size="26"  value="${obj.logo!}" class="easyui-validatebox" maxlength="100" style="width:300px;" type="text" title="这里请输入您的网站LOGO地址，最多为50个字符，如果您在第一选项选择的是文字链接，这项就不必填">
          </div></td>
      </tr>
      <tr>
        <td height="32"  class="td_table_1"><span class="smallFont">站&nbsp;&nbsp;&nbsp;长：</span></td>
        <td height="32" class="td_table_2"><div align="left">&nbsp;
            <input name="webmaster" size="26" value="${obj.webmaster!}" class="easyui-validatebox" maxlength="20" style="width:300px;" type="text"  title="这里请输入您的大名了，不然我知道您是谁啊。最多为20个字符">
          </div></td>
      </tr>
      <tr>
        <td height="32" class="td_table_1"><span class="smallFont">电子邮件：</span></td>
        <td height="32" class="td_table_2"><div align="left">&nbsp;
            <input name="email" size="26" value="${obj.email!}" class="easyui-validatebox" maxlength="30" style="width:300px;" type="text" title="这里请输入您的联系电子邮件，最多为30个字符">
          </div></td>
      </tr>
      <tr>
        <td height="32" class="td_table_1"><span class="smallFont">网站简介：</span></td>
        <td height="32" class="td_table_2">&nbsp;
          <textarea rows="5" name="content" value="${obj.content!}" cols="29" style="width:300px;"  title="这里请输入您的网站的简单介绍"></textarea></td>
      </tr>
  </table>
</form>
</body>
</html>